import http from '@/utils'

class Appoint {
    // 获取列表
    getList(reload) {
        let url = '/appointment/index';
        return http.get(url, reload)
    }
    // 创建预约
    createContent(reload) {
      let url = '/appointment/create';
      return http.post(url, reload)
    }
    // 编辑预约
    editContent(reload) {
      let url = '/appointment/edit';
      return http.post(url, reload)
    }
    // 预约详情
    getContentDetail(reload) {
      let url = '/appointment/detail';
      return http.get(url, reload)
    }
    // 删除
    deleteContent(reload) {
      let url = '/appointment/delete';
      return http.post(url, reload)
    }
    // 更新
    updateOnlyfield(reload) {
      let url = '/appointment/onlyfield';
      return http.post(url, reload)
    }
}

export default new Appoint()